package com.yonyougov.devops.cruxcisupport.rancher;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 容器信息
 */
@Data
public class Container {
    private boolean initContainer;
    private int restartCount;
    private boolean stdin = true;
    private boolean stdinOnce;
    private boolean tty = true;
    private String type = "container";
    private boolean privileged;
    private boolean allowPrivilegeEscalation;
    private boolean readOnly;
    private boolean runAsNonRoot;
    private String namespaceId;
    private String imagePullPolicy = "Always";
    private List<Map<String, String>> environmentFrom = new ArrayList<>();
    private Map<String, String> environment = new HashMap<>();
    private Resource resources = new Resource();
    private List<Object> capAdd = new ArrayList<>();
    private List<Object> capDrop = new ArrayList<>();
    private String image;
    private List<Port> ports;
    private ReadinessProbe readinessProbe;
    private LivenessProbe livenessProbe;
    private String name;
    private List<VolumeMount> volumeMounts = new ArrayList<>();
}
